﻿package com.findMoneyGame.interfaceComponents {
	
	import flash.display.MovieClip;

	import com.findMoneyGame.tools.TextFormatProvider;
	
	
	public class MoneyLabel extends MovieClip {
		
		public function get color () { return label.defaultTextFormat.color; }
		public function set color (value : Object) {
			var size = label.defaultTextFormat.size;
			label.defaultTextFormat = TextFormatProvider.getFormat(size, value);
		}
		public function get text () { return label.text; }
		public function set text (value : String) { label.text = value; }

		public function MoneyLabel() {
			label.defaultTextFormat.font = TextFormatProvider.font;
		}
	}
	
}
